<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class CreateKfShopSettleInSituationTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('kf_shop_settle_in_situation', function (Blueprint $table) {
            $table->id();
            $table->unsignedTinyInteger('type')->default(0)->comment('网规类型  1-商场');
            $table->string('grade', 24)->default('')->comment('网规等级');
            $table->string('name', 120)->default('')->comment('网规名称');
            $table->string('province', 56)->default('')->comment('省');
            $table->string('city', 56)->default('')->comment('市');
            $table->string('district', 56)->default('')->comment('区');
            $table->string('address', 255)->default('')->comment('详细地址');
            $table->string('isSettleIn', 24)->default(0)->comment('是否入驻  0否 1是');
            $table->unsignedInteger('settleInCount')->default(0)->comment('入驻数量');
            $table->unsignedInteger('long')->default(200)->comment('附近范围  m');
            $table->unsignedInteger('createdAt')->default(0)->comment('创建时间');
            $table->unsignedInteger('updatedAt')->default(0)->comment('修改时间');
            $table->collation = 'utf8mb4_general_ci';
            $table->comment = '夸父门店入驻情况';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('kf_shop_settle_in_situation');
    }
}
